package com.guomw.report.service.service;

import com.guomw.report.service.exceptions.NoUserException;
import com.guomw.report.service.exceptions.UpChainException;
import com.guomw.report.service.models.ChainReport;
import com.guomw.report.service.models.Detections;
import com.guomw.report.service.models.ReportList;
import com.guomw.report.service.models.ReportView;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

public interface ChainReportService {

    List<String> findFiles(String folder, String code);

    void generateReport(String code, String files) throws Exception;

    List<ReportList> getReportList(String code);

    ReportView viewReport(String reportCode, String reportVersion, String barCode);

    String getReportPicture(List<Detections> detectionsList);

    void uploadChain(String code, String files, String keywords, String mobile, String GCode, String MCode) throws Exception;

//    void uploadReport(String code, String keywords, String mobile, String reportUrl) throws Exception;


    ChainReport getReportData(String zipFile, String destDir) throws Exception;

    List<String> unZip(String zipFile, String destDir) throws Exception;
}
